home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 141_01 / cmath.doc < prev    next >
Encoding:
Text File  |  1985-03-09  |  896 b   |  23 lines

  1. cmath.doc
  2.         CMATH.C DOCUMENTATION
  3.  
  4. This package is Calhoun's CLOGS.C + CTRIG.C, with minor 
  5. improvements & additions by PM Krasno, 17813 Kiowa Trail,
  6. Los Gatos  CA  95030, 408-353-1287.  The addition is a
  7. square-root function (fpsqrt).  The improvements are:
  8.     1. Moving general constants to float.h and series
  9.         expansion coefficients to coef.h
  10.     2. Miscellaneous small rearrangements
  11.     3. Rewriting all polynomial expansions in the form
  12.         (...(c[n] * x + c[n-1]) * x + ... +c[1]) * x + c[0]
  13.         which saves one multiplication per coefficient
  14.     4. Eliminating roundoff tests in the polynomial loops.
  15. The speed improvement seems to be about 25 to 30%;
  16. specifically, for 241 evaluations (including loop overhead, 
  17. on a 2.5MH Z80) sine was reduced from 132 seconds to 92 and 
  18. log10 from 93 sec to 62 sec.
  19.  
  20.  
  21.  sec to 62 sec.
  22.  
  23. #fon& |╥X!«σ═É σ═╤╤├r═Éσ`iσ═ ╤╤`iσ═